package com.han.hotelplat.comm;

import java.sql.Types;

import org.hibernate.Hibernate;
import org.hibernate.dialect.MySQL5Dialect;

public class MySQLDialectExtension extends MySQL5Dialect {   
	
	 //解决异常：No Dialect mapping for JDBC type:-1
    public MySQLDialectExtension() {  
        super();   
        registerHibernateType(Types.LONGVARCHAR, Hibernate.TEXT.getName());   
        registerHibernateType(Types.LONGVARCHAR, Hibernate.STRING.getName());
    }

}
